# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=interrogate
pkgver=1.5.0
pkgrel=0
pkgdesc="Interrogate a codebase for docstring coverage"
url="https://github.com/econchick/interrogate"
arch="noarch"
license="MIT"
depends="python3 py3-attrs py3-click py3-colorama py3-py py3-tabulate py3-toml"
makedepends="py3-setuptools"
checkdepends="python3-dev py3-pytest py3-pytest-cov py3-pytest-mock"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/i/interrogate/interrogate-$pkgver.tar.gz"
builddir="$srcdir/interrogate-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/src pytest -vv
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
493411b1bf6a73512c0105da2a7caed5052c790429c2f499f18f8b6b5b5caa5f4b3c2d4cd490e06bfd99d82ba62ab00b623289bfe288cc95d58c089c10b6abdd  interrogate-1.5.0.tar.gz
"
